package io.adrainty.bolee.insurance.service.impl;

import io.adrainty.bolee.insurance.models.entity.CustomerRelationEntity;
import io.adrainty.bolee.insurance.repository.ICustomerRelationRepository;
import io.adrainty.bolee.insurance.service.ICustomerRelationService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author AdRainty
 * @version V1.0.0
 * @since 2025/8/24 下午11:37
 */

@Service
public class CustomerRelationServiceImpl implements ICustomerRelationService {

    @Resource
    private ICustomerRelationRepository customerRelationRepository;

    @Override
    public List<CustomerRelationEntity> listByIds(List<String> customerRelationIds) {
        return customerRelationRepository.listByIds(customerRelationIds);
    }

    @Override
    public List<CustomerRelationEntity> findRelationList(CustomerRelationEntity relationEntity) {
        return customerRelationRepository.findList(relationEntity);
    }
}
